﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using MSNPSharp;
using CGLib.Enums;

namespace TienLen
{
    /// <summary>
    /// Static class containing server related functions (especially MSN).
    /// </summary>
    static class SvrFunc
    {
        private static SvrType svrtype;
        private static Messenger msn = null;

        private static List<CGLib.IGame> games = new List<CGLib.IGame>();
        private static List<Guid> gameGUID = new List<Guid>();

        /// <summary>
        /// The list of loaded card games.
        /// </summary>
        public static List<CGLib.IGame> Games
        {
            get { return games; }
        }

        /// <summary>
        /// The list of card game GUID info's.
        /// </summary>
        public static List<Guid> GameGUID
        {
            get { return gameGUID; }
        }

        /// <summary>
        /// The messenger class for MSN related activities.
        /// </summary>
        public static Messenger MSN
        {
            get { return msn; }
            set { msn = value; }
        }

        /// <summary>
        /// The current server being played on.
        /// </summary>
        public static SvrType ServerType
        {
            get { return svrtype; }
            set { svrtype = value; }
        }
    }

}
